﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Widgets/Widgets.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">
    <%
        Stock stock = (Stock)ViewData["StockModel"];
    %>
    <div class="stockFull">
        <h2><%=stock.Symbol%> - <%=stock.Name%></h2>
        <table>
            <tr>
                <td>
                    Current Price:
                    <b><%= String.Format("{0:C}", stock.CurrentPrice) %></b>
                </td>
                <td>
                    Volume:
                    <b><%=stock.Shares %></b>
                </td>
            </tr>
            <tr>
                <td>
                    Buying Price:
                    <b><%= String.Format("{0:C}", stock.BuyingPrice) %></b>
                </td>
                <td>
                    Profit to Date:
                    <b class="<%=(stock.Profit < 0 ? "stockNeg" : "stockPos") %>"><%= String.Format("{0:C}", stock.Profit) %></b>
                </td>
            </tr>
            <tr>
                <td>
                    Profit Today:
                    <b class="<%=(stock.DifferentialProfit < 0 ? "stockNeg" : "stockPos") %>"><%= String.Format("{0:C}", stock.DifferentialProfit) %></b>
                </td>
                <td>
                    52-Week Low:
                    <b><%= String.Format("{0:C}", stock.FiftyTwoWeekLow) %></b>
                </td>
            </tr>
            <tr>
                <td>
                    52-Week High:
                    <b><%= String.Format("{0:C}", stock.FiftyTwoWeekHigh) %></b>
                </td>
            </tr>
        </table>
        <br />
        <div id="wikichartContainer<%=stock.Symbol %>">
            <div style="width: 390px; text-align: center; vertical-align: center; margin-top: 22px;">
                <a href="http://get.adobe.com/flashplayer/">
                    <img src="http://cdn.wikinvest.com/wikinvest/images/adobe_flash_logo.gif" alt="Flash" style="border-width: 0px;"/>
                    <br/>Flash Player 9 or higher is required to view the chart<br/>
                    <strong>Click here to download Flash Player now</strong>
                </a>
            </div>
        </div>
        <script type="text/javascript">
            if (typeof (embedWikichart) != "undefined") {
                embedWikichart("http://charts.wikinvest.com/WikiChartMini.swf",
                "wikichartContainer<%=stock.Symbol %>",
                "100%", "365", { "ticker": "<%=stock.Symbol %>", "embedCodeDate": "2012-5-6", "showAnnotations": "false", "liveQuote": "true", "rollingDate": "1 month" }, {});
            }
        </script>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <script src="http://charts.wikinvest.com/wikinvest/wikichart/javascript/scripts.php" type="text/javascript">
    </script>
</asp:Content>
